package com.qf.springmvc2.service;

import com.qf.springmvc2.entity.User;

import java.util.List;

public interface UserService {

    List<User> selectAllUser();

    User selectById(Integer id);

    int addUser(User user);

    int update(User user);

    int deleteById(Integer id);

    // 业务层的登录方法
    User login(String name,String password);
}
